package com.xiongwei.myspringbootproject.dao;

import com.xiongwei.myspringbootproject.domain.Category_1688;
import com.xiongwei.myspringbootproject.domain.ProductJD;
import io.lettuce.core.StrAlgoArgs;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * @author XiongWei
 * @date 2021/9/23
 */
@Repository
public interface Categroy1688Dao extends JpaRepository<Category_1688, Long> {

    List findAllByCategoryNameLike(String categoryName);

    Optional<Category_1688> findOneByCategoryId(Long categoryId);

    List findAllByCategoryNameAndCategoryLevel(String categoryName, Byte categoryLevel);

}
